# Module build makefile
CUR_ROOT    := $(shell pwd)
REF_ROOT    ?= $(CUR_ROOT)/../../..
PDT_ROOT    ?= $(CUR_ROOT)/../../../$(CFG_PDT_TYPE)
SDK_ROOT    ?= $(REF_ROOT)/../

include $(SDK_ROOT)/build/base.mak
include $(REF_ROOT)/build/base.mak
include $(PDT_ROOT)/build/base.mak

$(warning CFG_PDT_TYPE = $(CFG_PDT_TYPE))
$(warning SDK_ROOT = $(SDK_ROOT))
$(warning REF_ROOT = $(REF_ROOT))
$(warning PDT_ROOT = $(PDT_ROOT))

OS_TYPE     := Linux
MODULE_ROOT := $(CUR_ROOT)
MODULE_NAME := algadapter_adas
HARDWARE_TYPE:=

VSS_INC_PATH += -I$(CUR_ROOT)/../include

ifeq ($(CONFIG_ADAS_DUMMY_SUPPORT), y)
	VSS_INC_PATH += -I$(CUR_ROOT)/../vendor_dummy
endif

SRC_ROOT     := $(MODULE_ROOT)
SRC_DIR      := $(SRC_ROOT)/$(HARDWARE_TYPE)
OBJ_ROOT     := $(PDT_OUT_MODULES_OBJ)/$(MODULE_NAME)/$(OS_TYPE)
LIB_ROOT     := $(PDT_OUT_MODULES_LIB)/$(OS_TYPE)
LIB_TYPE     := static
VSS_CFLAGS   += -D_GNU_SOURCE


include $(REF_ROOT)/build/modbuild.mak
